home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / New System Software Extensions / QuickDraw™ GX v1.0ß2 / Interfaces & Libraries / interfaces / font routines.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-29  |  5.8 KB  |  98 lines  |  [TEXT/MPS ]

  1. /* graphics:
  2.     gxFont routines
  3.     by Cary Clark, Georgiann Delaney, Michael Fairman, Dave Good, Robert Johnson, Keith McGreggor, Mike Reed, Oliver Steele, David Van Brink, Chris Yerga
  4.     Copyright ©1987 - 1991 Apple Computer, Inc.  All rights reserved.
  5. */
  6.  
  7. #ifndef fontRoutinesIncludes
  8. #define fontRoutinesIncludes
  9.  
  10.     #ifndef mathTypesIncludes
  11.         #include "math types.h"
  12.     #endif
  13.  
  14.     #ifndef fontTypesIncludes
  15.         #include "font types.h"
  16.     #endif
  17.  
  18.  
  19.     #ifdef appleInternal
  20.         #define GXInlineCode(x)
  21.     #endif
  22.     #ifndef GXInlineCode
  23.         #define GXInlineCode(x)   = {0x303C, x, 0xA832}
  24.     #endif
  25.     
  26.     #ifdef __cplusplus
  27.     extern "C" {
  28.     #endif
  29.  
  30.     gxFont GXNewFont(gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute attributes) GXInlineCode(0x11D0);
  31.     gxFontStorageTag GXGetFont(gxFont fontID, gxFontStorageReference *reference, gxFontAttribute *attributes) GXInlineCode(0x11D1);
  32.     gxFont GXFindFont(gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute* attributes) GXInlineCode(0x124C);
  33.     void GXSetFont(gxFont fontID, gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute attributes) GXInlineCode(0x11D2);
  34.     void GXDisposeFont(gxFont fontID) GXInlineCode(0x11D3);
  35.     void GXChangedFont(gxFont fontID) GXInlineCode(0x11D4);
  36.  
  37.     gxFontFormatTag GXGetFontFormat(gxFont fontID) GXInlineCode(0x1245);
  38.     gxFont GXGetDefaultFont(void) GXInlineCode(0x11D5);
  39.     gxFont GXSetDefaultFont(gxFont fontID) GXInlineCode(0x11D6);
  40.     long GXFindFonts(gxFont familyID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language,
  41.         long length, const unsigned char text[], long index, long count, gxFont fonts[]) GXInlineCode(0x11D7);
  42.     long GXCountFontGlyphs(gxFont fontID) GXInlineCode(0x11E3);
  43.  
  44.     long GXCountFontTables(gxFont fontID) GXInlineCode(0x11D9);
  45.     long GXGetFontTable(gxFont fontID, long index, void* tableData, gxFontTableTag* tableTag) GXInlineCode(0x11DA);
  46.     long GXFindFontTable(gxFont fontID, gxFontTableTag tableTag, void* tableData, long* index) GXInlineCode(0x11DB);
  47.     long GXGetFontTableParts(gxFont fontID, long index, long offset, long length, void* tableData, gxFontTableTag* tableTag) GXInlineCode(0x11DC);
  48.     long GXFindFontTableParts(gxFont fontID, gxFontTableTag tableTag, long offset, long length, void* tableData, long* index) GXInlineCode(0x11DD);
  49.     long GXSetFontTable(gxFont fontID, long index, gxFontTableTag tableTag, long length, const void* tableData) GXInlineCode(0x11E6);
  50.     long GXSetFontTableParts(gxFont fontID, long index, gxFontTableTag tableTag, long offset, long oldLength, long newLength, const void* tableData) GXInlineCode(0x11E7);
  51.     long GXDeleteFontTable(gxFont fontID, long index, gxFontTableTag tableTag) GXInlineCode(0x11E8);
  52.  
  53.     long GXCountFontNames(gxFont fontID) GXInlineCode(0x11DE);
  54.     long GXGetFontName(gxFont fontID, long index, gxFontName *name, gxFontPlatform *platform,
  55.         gxFontScript *script, gxFontLanguage *language, unsigned char text[]) GXInlineCode(0x120E);
  56.     long GXFindFontName(gxFont fontID, gxFontName name, gxFontPlatform platform,
  57.         gxFontScript script, gxFontLanguage language, unsigned char text[], long *index) GXInlineCode(0x11DF);
  58.     long GXSetFontName(gxFont fontID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language,
  59.         long length, const unsigned char text[]) GXInlineCode(0x11E9);
  60.     long GXDeleteFontName(gxFont fontID, long index, gxFontName name, gxFontPlatform platform, gxFontScript script,
  61.         gxFontLanguage language) GXInlineCode(0x11EA);
  62.     gxFontName GXNewFontNameID(gxFont fontID) GXInlineCode(0x126D);
  63.  
  64.     long GXCountFontEncodings(gxFont fontID) GXInlineCode(0x11E0);
  65.     gxFontPlatform GXGetFontEncoding(gxFont fontID, long index, gxFontScript *script, gxFontLanguage* language) GXInlineCode(0x11E1);
  66.     long GXFindFontEncoding(gxFont fontID, gxFontPlatform platform, gxFontScript script, gxFontLanguage language) GXInlineCode(0x120F);
  67.     long GXApplyFontEncoding(gxFont fontID, long index, long* length, const unsigned char text[],
  68.         long count, unsigned short glyphs[], char was16Bit[]) GXInlineCode(0x11E2);
  69.  
  70.     long GXCountFontVariations(gxFont) GXInlineCode(0x1210);
  71.     long GXFindFontVariation(gxFont, gxFontVariationTag variationTag, fixed* minValue, fixed* defaultValue, fixed* maxValue, gxFontName* name) GXInlineCode(0x1211);
  72.     gxFontVariationTag GXGetFontVariation(gxFont, long index, fixed* minValue, fixed* defaultValue, fixed* maxValue, gxFontName* name) GXInlineCode(0x1212);
  73.  
  74.     long GXCountFontInstances(gxFont) GXInlineCode(0x1213);
  75.     gxFontName GXGetFontInstance(gxFont, long index, gxFontVariation variation[]) GXInlineCode(0x1214);
  76.     long GXSetFontInstance(gxFont fontID, long index, gxFontName name, const gxFontVariation variation[]) GXInlineCode(0x1215);
  77.     long GXDeleteFontInstance(gxFont fontID, long index, gxFontName name) GXInlineCode(0x1216);
  78.  
  79.     long GXCountFontDescriptors(gxFont fontID) GXInlineCode(0x121E);
  80.     gxFontDescriptorTag GXGetFontDescriptor(gxFont fontID, long index, fixed* descriptorValue) GXInlineCode(0x121F);
  81.     long GXFindFontDescriptor(gxFont fontID, gxFontDescriptorTag descriptorTag, fixed* descriptorValue) GXInlineCode(0x1220);
  82.     long GXSetFontDescriptor(gxFont fontID, long index, gxFontDescriptorTag descriptorTag, fixed descriptorValue) GXInlineCode(0x1221);
  83.     long GXDeleteFontDescriptor(gxFont fontID, long index, gxFontDescriptorTag descriptorTag) GXInlineCode(0x1222);
  84.  
  85.     long GXCountFontFeatures(gxFont fontID) GXInlineCode(0x124F);
  86.     gxFontName GXGetFontFeature(gxFont fontID, long index, gxFontFeatureFlag* flags, long* settingCount, gxFontFeatureSetting settings[], gxFontFeature* feature) GXInlineCode(0x1250);
  87.     gxFontName GXFindFontFeature(gxFont fontID, gxFontFeature feature, gxFontFeatureFlag* flags, long* settingCount, gxFontFeatureSetting settings[], long* index) GXInlineCode(0x1251);
  88.  
  89.     void GXFlattenFont(gxFont source, struct scalerStream* stream, struct gxSpoolBlock* block) GXInlineCode(0x124D);
  90.  
  91.     #ifdef __cplusplus
  92.     }
  93.     #endif
  94.  
  95.     #undef GXInlineCode
  96.  
  97. #endif
  98.